<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="default" />
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
	type="text/javascript"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
	type="text/javascript"></script>
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(
			function() {
				$(".o-a-form-date").datetimepicker({
					language : 'zh-CN',
					autoclose : true,
					minView : 2,
					todayBtn : 1,
					pickerPosition : "bottom-left"
				});
				$('[data-accounting]').each(
						function() {
							var $this = $(this);
							if ($this.attr("data-accounting-precision")
									&& "" != $this.attr("data-accounting-precision")) {
								$this.html(accounting.formatMoney($this
										.attr("data-accounting"), "¥ ", $this
										.attr("data-accounting-precision") * 1));
							} else {
								$this.html(accounting.formatMoney($this
										.attr("data-accounting"), "¥ "));
							}
						});
				
             	parent.document.getElementById("billDetailFrame").height = document.body.scrollHeight;
				$('#btnSelect').click(
						function() {
							window.open(
									'${contextPath}/statement/stm/prepaid/getByPrepaid?'
											+ $('#prepaidForm').serialize(),
									'_self');
						});
			});
</script>

</head>
<body>
<form:form name="listForm" modelAttribute="bizStatementBillDetail" method="post" class="form-inline" role="form">
	    <input type="hidden" name="deleteIds" >
		<div class="o-l-search-builder f_9">
			<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
				<thead class="t_1">
					<tr>
						<!-- <th>对账单行项</th> -->
						<th>事务类型</th>
						<th>收货凭证日期</th>
						<th>物料编号</th>
						<th>移动类型</th>
						<th>数量</th>
						<!--<th>单位</th>-->
						<th>净价</th>
						<th>税额</th>
						<th>税率税码</th>
						<th>开票类型</th>
						<th>含税金额</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${page.list}" var="bizStatementBillDetail">
						<tr>
						<%-- 	<td>${bizStatementBillDetail.item}</td> --%>
							<td><ossp:value dictType="TRANTYPE" key="${bizStatementBillDetail.type}"></ossp:value></td>
							<td><fmt:formatDate value="${bizStatementBillDetail.receiveDate}"
									pattern="yyyy-MM-dd " /></td>
							<td>${bizStatementBillDetail.materialNo}</td>
							<td>${bizStatementBillDetail.movementType}</td>
							<td>${bizStatementBillDetail.quantity}</td>
							<%-- <td>${bizStatementBillDetail.unit}</td> --%>
							<td>${bizStatementBillDetail.netPrice}</td>
							<td>${bizStatementBillDetail.tax}</td>
							<td>${bizStatementBillDetail.taxCode}</td>
							<td><ossp:value dictType="INVOICETYPE" key="${bizStatementBillDetail.billingType}"></ossp:value></td>
							<td>${bizStatementBillDetail.taxAmount}</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
        </div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
		<script type="text/javascript" src="${staticPath}/js/list.js"></script>
  </form:form>
</body>
</html>